const a = async function (
  _,
  { memory },
  { dc: { http, store }, xe: { get }, dayjs }
) {
  const params = {
    type: 1,
    YEAR: dayjs(store.get("user", "date")).format("YYYY"),
  };
  const enterpriseNode = get(memory, "enterpriseNode", false);
  if (enterpriseNode) {
    const { ECODE, IN_CODE } = enterpriseNode;
    params.enterpriseCode = ECODE;
    params.enterpriseInCode = IN_CODE;
  }
  return await http.form({
    url: "/zw/home/listTotalMoney",
    data: params,
  });
};
